package it.fuesi.expired.model.base;

import it.fuesi.expired.model.Attachment;


public abstract class AModel implements IModel {

	private boolean success = true;
	private String msg;
	
	private String _id;
	
	private String attachmentId;
	
	public AModel(){
		
	}
	
	public void setSuccess(boolean success){
		this.success = success;
	}
	
	public boolean isSuccess() {
		return success;
	}

	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg){
		this.msg = msg;
	}

	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}
	
	@Override
	public String toString() {
		return "Class["+getClass().getSimpleName() + "] - _id["+_id+"]";
	}

	public String getAttachmentId() {
		return attachmentId;
	}

	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}
	
	

}
